package com.zhousb.deviceManager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhousb.deviceManager.model.entity.SysRole;
import com.zhousb.deviceManager.model.entity.SysUser;
import com.zhousb.deviceManager.model.vo.SysUserVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysUserMapper extends BaseMapper<SysUser> {

    IPage<SysUserVo> pageUser(Page page, @Param("keyword")String keyword, @Param("tenantId")Long tenantId);
    List<SysRole> listRoleByUserId(Long userId);
}
